import request from "@/plugins/request";
import axios from "axios";

var pre = "/rvhealth/organizations";

if (process.env.NODE_ENV !== "development") {
    pre = '/api/rvsa/rv-health' + pre;
}

// 查询体检机构列表
export function listOrganizations(query) {
  return request({
    url: `${pre}/list`,
    method: 'get',
    params: query
  })
}


// 根据id获得体检机构信息
export function getById(query) {
  return request({
    url: `${pre}/get`,
    method: 'get',
    params: query
  })
}

// 体检套餐管理中查询体检机构列表
export function olistOrganizations() {
  return request({
    url: `${pre}/olist`,
    method: 'get'
  })
}
